
#ifndef  WIRELESSPROCESS
#define  WIRELESSPROCESS

#include <ioCC2430.h>
#include "bsp.h"
#include "mrfi.h"
#include "nwk_types.h"
#include "nwk_api.h"
#include "nwk.h"

//                              PC send     recorder send
#define  HAND_SHAKE                             0x01

#define  THRESHOLD_SET            0x02
#define  THRESHOLD_SET_BACK                     0x12


#define  CLOCK_SET                0x03
#define  CLOCK_SET_BACK                         0x13


#define  COLLECT_TIME_SET         0x04
#define  COLLECT_TIME_SET_BACK                  0x14


#define  THRESHOLD_READ           0x05
#define  THRESHOLD_READ_BACK                    0x15


#define  CLOCK_READ               0x06
#define  CLOCK_READ_BACK                        0x16


#define  TH_DATA_READ             0x07
#define  TH_DATA_READ_BACK                      0x17


#define  A_PAGE_COMPLETE                        0x08
#define  A_PAGE_COMPLETE_BACK     0x18


#define  ALL_PAGE_COMPLETE                      0x09
#define  ALL_PAGE_COMPLETE_BACK   0x19


#define  COLLECT_TIME_READ        0x0A
#define  COLLECT_TIME_READ_BACK                 0x1A

#define  WIRELESS_CLOSE           0x0B


//background
#define  FLASH_PAGE_READ          0x0C
#define  FLASH_PAGE_READ_BACK                   0x1C

#define  RESTORE_FACTORY_SET      0x0D
#define  RESTORE_FACTORY_SET_BACK               0x1D

#define  WHICH_TWO_PAGE           0x0E
#define  WHICH_TWO_PAGE_BACK                    0x1E


extern uint8 cAck;
void HandShakeProcess(void);
void SignalProcess(uint8 *msg);
void PackageSend(uint8 cmd, uint8 *data, uint8 len);

#endif